package com.neu.po;

public class Merchant {
	private Integer mid;
	private String mname;
	private String loc;
	private String meg;
	private Double sfee;
	private Double ffee;
	public Integer getMid() {
		return mid;
	}
	public void setMid(Integer mid) {
		this.mid = mid;
	}
	public String getMname() {
		return mname;
	}
	public void setMname(String mname) {
		this.mname = mname;
	}
	public String getLoc() {
		return loc;
	}
	public void setLoc(String loc) {
		this.loc = loc;
	}
	public String getMeg() {
		return meg;
	}
	public void setMeg(String meg) {
		this.meg = meg;
	}
	public Double getSfee() {
		return sfee;
	}
	public void setSfee(Double sfee) {
		this.sfee = sfee;
	}
	public Double getFfee() {
		return ffee;
	}
	public void setFfee(Double ffee) {
		this.ffee = ffee;
	}
	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((ffee == null) ? 0 : ffee.hashCode());
		result = prime * result + ((loc == null) ? 0 : loc.hashCode());
		result = prime * result + ((meg == null) ? 0 : meg.hashCode());
		result = prime * result + ((mid == null) ? 0 : mid.hashCode());
		result = prime * result + ((mname == null) ? 0 : mname.hashCode());
		result = prime * result + ((sfee == null) ? 0 : sfee.hashCode());
		return result;
	}
	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		Merchant other = (Merchant) obj;
		if (ffee == null) {
			if (other.ffee != null)
				return false;
		} else if (!ffee.equals(other.ffee))
			return false;
		if (loc == null) {
			if (other.loc != null)
				return false;
		} else if (!loc.equals(other.loc))
			return false;
		if (meg == null) {
			if (other.meg != null)
				return false;
		} else if (!meg.equals(other.meg))
			return false;
		if (mid == null) {
			if (other.mid != null)
				return false;
		} else if (!mid.equals(other.mid))
			return false;
		if (mname == null) {
			if (other.mname != null)
				return false;
		} else if (!mname.equals(other.mname))
			return false;
		if (sfee == null) {
			if (other.sfee != null)
				return false;
		} else if (!sfee.equals(other.sfee))
			return false;
		return true;
	}
	@Override
	public String toString() {
		return "Merchant [mid=" + mid + ", mname=" + mname + ", loc=" + loc + ", meg=" + meg + ", sfee=" + sfee
				+ ", ffee=" + ffee + "]";
	}
	public Merchant(Integer mid, String mname, String loc, String meg, Double sfee, Double ffee) {
		super();
		this.mid = mid;
		this.mname = mname;
		this.loc = loc;
		this.meg = meg;
		this.sfee = sfee;
		this.ffee = ffee;
	}

	
	
}
